<template>
  <div class="list">
    <div class="item">
      <img src="../../assets/img/index_banner.jpg" alt class="img">
      <div class="title">党员发展考试</div>
      <div class="extra">时间：2019-3-10</div>
      <div class="extra">发起人：叶明珠</div>
      <div class="btn">参加考试</div>
    </div>
    <div class="item">
      <img src="../../assets/img/index_banner.jpg" alt class="img">
      <div class="title">党员发展考试</div>
      <div class="extra">时间：2019-3-10</div>
      <div class="extra">发起人：叶明珠</div>
      <div class="btn">参加考试</div>
    </div>
    <div class="item">
      <img src="../../assets/img/index_banner.jpg" alt class="img">
      <div class="title">党员发展考试</div>
      <div class="extra">时间：2019-3-10</div>
      <div class="extra">发起人：叶明珠</div>
      <div class="btn">参加考试</div>
    </div>
    <div class="item">
      <img src="../../assets/img/index_banner.jpg" alt class="img">
      <div class="title">党员发展考试</div>
      <div class="extra">时间：2019-3-10</div>
      <div class="extra">发起人：叶明珠</div>
      <div class="btn">参加考试</div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  .item {
    flex: 0 0 44%;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    .img {
      display: block;
      width: 100%;
    }
    .title {
      font-weight: bold;
      text-align: center;
      line-height: 1;
      padding: 10px 0;
    }
    .extra {
      font-size: 12px;
      color: #999;
    }
    .btn {
      width: 50%;
      margin: 10px auto 0 auto;
      color: #fff;
      background-color: #ee4532;
      padding: 3px 0;
      text-align: center;
      border-top-left-radius: 6px;
      border-top-right-radius: 6px;
    }
  }
}
</style>
